home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextLibrary / Receipts / EODeveloper.pkg / EODeveloper.post_install < prev    next >
Encoding:
Text File  |  1995-01-27  |  1.5 KB  |  53 lines

  1. #!/bin/csh -f
  2.  
  3. # EODeveloper.post_install
  4.  
  5. echo ""
  6.  
  7. echo -n "        Checking compiler ... "
  8. if ( ! -x /bin/cc ) then
  9.     echo "Couldn't find /bin/cc.  /bin/cc (in the DeveloperTools package) is required for building precompiled headers."
  10.     exit 1
  11. endif
  12. echo "OK."
  13.  
  14. set arch_type = `/usr/bin/arch`
  15. if ( ${arch_type} == "sparc" ) then
  16.     set RC_CFLAGS = "-arch m68k -arch i386 -arch hppa -arch sparc"
  17. else if ( ${arch_type} == "hppa" ) then
  18.     set RC_CFLAGS = "-arch m68k -arch i386 -arch hppa"
  19. else
  20.     set RC_CFLAGS = "-arch m68k -arch i386"
  21. endif
  22.  
  23. set eoaccess = /NextDeveloper/Headers/eoaccess/eoaccess
  24. echo -n "        Precompiling ${eoaccess}.h ... "
  25. /bin/cc -precomp ${eoaccess}.h -o ${eoaccess}.p ${RC_CFLAGS} || exit 1
  26. echo "OK."
  27.  
  28. set eointerface = /NextDeveloper/Headers/eointerface/eointerface
  29. echo -n "        Precompiling ${eointerface}.h ... "
  30. /bin/cc -precomp ${eointerface}.h -o ${eointerface}.p ${RC_CFLAGS} || exit 1
  31. echo "OK."
  32.  
  33. echo -n "        Indexing /NextDeveloper/Headers (this can take a while)... "
  34. chdir /NextDeveloper/Headers
  35. /bin/rm -f .index.store || exit 1
  36. /usr/bin/ixbuild -fs -LEnglish || exit 1
  37. echo "OK."
  38.  
  39. echo -n "        Indexing /NextDeveloper/Examples (this can take a while)... "
  40. chdir /NextDeveloper/Examples
  41. /bin/rm -f .index.store || exit 1
  42. /usr/bin/ixbuild -fs -LEnglish || exit 1
  43. echo "OK."
  44.  
  45. echo -n "        Indexing /NextLibrary/Documentation/NextDev (this can take a while)... "
  46. chdir /NextLibrary/Documentation/NextDev
  47. /bin/rm -f .index.store || exit 1
  48. /usr/bin/ixbuild -fs -LEnglish || exit 1
  49. echo "OK."
  50.  
  51. echo "    ... done."
  52. exit 0
  53.